<?php

namespace App\Http\Requests\Backend\Basic;

use App\Http\Requests\BaseRequest;

class CurrencyRequest extends BaseRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * 表单验证.
     *
     * @return array
     */
    public function rules()
    {
        return [
           // 'sys_code' => 'required|max:20',
			'name' => 'required|max:20',
			'sort_name' => 'required|max:20',
		//	'unit_precision' => '|integer',
		//	'money_precision' => '|integer',
			'priority' => '|integer',
			'is_middle' => '|integer',
			'deleted_at' => '|integer',

        ];
    }       
}
